package com.example.demo01.Entity.webEntity;

public class WarnRecordEntity {
    //attributes
    private Integer id;//编号
    private String idNumber;//身份证号
    private String name;//姓名
    private Float wLon;//经度
    private Float wLat;//纬度
    private String warntime;//报警时间
    private Integer status;//状态值
    private String adminAccount;//管理员账户
    private String endTime;//处理时间
    private String warnAddress;//报警地点
    //constructors
    public WarnRecordEntity() {
    }

    public WarnRecordEntity(Integer id, String idNumber, String name, Float wLon, Float wLat, String warntime, Integer status, String adminAccount, String endTime, String warnAddress) {
        this.id = id;
        this.idNumber = idNumber;
        this.name = name;
        this.wLon = wLon;
        this.wLat = wLat;
        this.warntime = warntime;
        this.status = status;
        this.adminAccount = adminAccount;
        this.endTime = endTime;
        this.warnAddress = warnAddress;
    }

    public WarnRecordEntity(String idNumber, Float wLon, Float wLat, String warntime, Integer status, String adminAccount, String endTime) {
        this.idNumber = idNumber;
        this.wLon = wLon;
        this.wLat = wLat;
        this.warntime = warntime;
        this.status = status;
        this.adminAccount = adminAccount;
        this.endTime = endTime;
    }

    public WarnRecordEntity(Integer id, String idNumber, Float wLon, Float wLat, String warntime, Integer status, String adminAccount, String endTime) {
        this.id = id;
        this.idNumber = idNumber;
        this.wLon = wLon;
        this.wLat = wLat;
        this.warntime = warntime;
        this.status = status;
        this.adminAccount = adminAccount;
        this.endTime = endTime;
    }

    public WarnRecordEntity(Integer id, String idNumber, Float wLon, Float wLat, String warntime, Integer status, String adminAccount, String endTime, String warnAddress) {
        this.id = id;
        this.idNumber = idNumber;
        this.wLon = wLon;
        this.wLat = wLat;
        this.warntime = warntime;
        this.status = status;
        this.adminAccount = adminAccount;
        this.endTime = endTime;
        this.warnAddress = warnAddress;
    }

    public WarnRecordEntity(Integer id, String idNumber, String name, Float wLon, Float wLat, String warntime, Integer status,  String endTime, String warnAddress) {
        this.id = id;
        this.idNumber = idNumber;
        this.name = name;
        this.wLon = wLon;
        this.wLat = wLat;
        this.warntime = warntime;
        this.status = status;
        this.endTime = endTime;
        this.warnAddress = warnAddress;
    }

    @Override
    public String toString() {
        return "WarnRecordEntity{" +
                "id=" + id +
                ", idNumber='" + idNumber + '\'' +
                ", name='" + name + '\'' +
                ", wLon=" + wLon +
                ", wLat=" + wLat +
                ", warntime='" + warntime + '\'' +
                ", status=" + status +
                ", adminAccount='" + adminAccount + '\'' +
                ", endTime='" + endTime + '\'' +
                ", warnAddress='" + warnAddress + '\'' +
                '}';
    }


    //setter

    public void setId(Integer id) {
        this.id = id;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setwLon(Float wLon) {
        this.wLon = wLon;
    }

    public void setwLat(Float wLat) {
        this.wLat = wLat;
    }

    public void setWarntime(String warntime) {
        this.warntime = warntime;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setAdminAccount(String adminAccount) {
        this.adminAccount = adminAccount;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public void setWarnAddress(String warnAddress) {
        this.warnAddress = warnAddress;
    }

    //getter

    public Integer getId() {
        return id;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public String getName() {
        return name;
    }

    public Float getwLon() {
        return wLon;
    }

    public Float getwLat() {
        return wLat;
    }

    public String getWarntime() {
        return warntime;
    }

    public Integer getStatus() {
        return status;
    }

    public String getAdminAccount() {
        return adminAccount;
    }

    public String getEndTime() {
        return endTime;
    }

    public String getWarnAddress() {
        return warnAddress;
    }
}
